using System;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design;
using Microsoft.Practices.EnterpriseLibrary.PolicyInjection.Configuration.Design;

namespace Avanade.PolicyInjection.Design
{
    internal class PolicyInjectionCommandRegistrar : CommandRegistrar
    {
        public PolicyInjectionCommandRegistrar(IServiceProvider serviceProvider)
            : base(serviceProvider)
        { }

        public override void Register()
        {
            AddDefaultCommands(typeof(WcfValidationCallHandlerNode));

            AddMoveUpDownCommands(typeof(WcfValidationCallHandlerNode));

            AddMultipleChildNodeCommand(Resources.AddWcfValidationCallHandlerCommandText,
                Resources.AddWcfValidationCallHandlerCommandTextLong,
                typeof(WcfValidationCallHandlerNode),
                typeof(CallHandlersCollectionNode));
        }
    }
}